package br.com.edoc.aop;

import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;
import br.com.edoc.gerentes.GerentePadraoImpl;

public class AdivisorConsultaBefore implements MethodBeforeAdvice {

	public void before(Method metodoa, Object[] arqumentos, Object object)		throws Throwable {
		if(((GerentePadraoImpl) object).getSession().isOpen()){
			System.out.println("Aberta a conexão");
		}
	}
}